<?php
//豆浆
$duck = new \BigVideo\Other\Decorator\Drink\Soya();
//加料
$duck = new \BigVideo\Other\Decorator\Drink\RedBean($duck);
$duck = new \BigVideo\Other\Decorator\Drink\Egg($duck);
$duck = new \BigVideo\Other\Decorator\Drink\Sugar($duck);

var_dump($duck->money());
var_dump($duck->desc());

//果汁
$fruit = new \BigVideo\Other\Decorator\Drink\Fruit();
$fruit = new \BigVideo\Other\Decorator\Drink\Sugar($fruit);
$fruit = new \BigVideo\Other\Decorator\Drink\RedBean($fruit);

var_dump($fruit->money());
var_dump($fruit->desc());